package com.xiyounet.login.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import java.math.BigDecimal;

import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;
import org.apache.ibatis.type.Alias;

/**
 * <p>
 * 
 * </p>
 *
 * @author nepenthe
 * @since 2022-04-12
 */
@TableName("user")
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@AllArgsConstructor
@NoArgsConstructor
public class IUser implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 用户主键Id
     */
    @TableId(value = "userId", type = IdType.AUTO)
    private Long userId;

    /**
     * 用户昵称
     */
    @TableField("userName")
    private String userName;

    /**
     * 用户手机号,作为账号
     *
     */
    private String phone;

    /**
     * 用户邮箱
     */
    private String email;

    /**
     * 用户性别0：女；1：男
     */
    private Integer sex;

    /**
     * 用户状态
     */
    private Integer status;

    /**
     * 密码
     */
    private String password;
    /**
     * 账户余额
     */
    private BigDecimal balance;
}
